package com.planet.utils.global;

/**
 * Created by jiayazi on 17/9/20.
 */

// ******   好好看看如何创建枚举类   ***********
public enum ExceptionEnum {
    UNKNOW_ERROR(500,"系统异常"),
    USER_NOT_FIND(2,"未登录"),
    ;

    private Integer code;
    private String msg;


    ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
